package com.runewbie.pafcmall.product.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.runewbie.common.utils.PageUtils;
import com.runewbie.pafcmall.product.entity.AttrGroupEntity;
import com.runewbie.pafcmall.product.vo.AttrGroupWithAttrsVo;

import java.util.List;
import java.util.Map;

/**
 * 属性分组
 *
 * @author runewbie
 * @email 0102lijian@gmail.com
 * @date 2020-04-11 22:47:28
 */
public interface AttrGroupService extends IService<AttrGroupEntity> {

    PageUtils queryPage(Map<String, Object> params);

    /**
     * 分页获取属性分组
     * @param params
     * @param catelogId
     * @return
     */
    PageUtils queryPage(Map<String, Object> params, Long catelogId);

    /**
     * 获取分类下所有分组&关联属性
     * @param catelogId
     * @return
     */
    List<AttrGroupWithAttrsVo> getAttrGroupWithAttrsByCatelogId(Long catelogId);
}

